<template>
  <div id="app">
    <!-- 小熊 对 小猫 的聊天 -->
    <!-- <TUIKit
      :SDKAppID="1600075130"
      userID="456"
      userSig="eJyrVgrxCdYrSy1SslIy0jNQ0gHzM1NS80oy0zLBwiamZlDh4pTsxIKCzBQlK0MzAwMDc1NDYwOITGpFQWZRKlDc1NTUCCgFES3JzAWJmZsYGphZmpobQU3JTAeampcRke5REGaWkutcUJSRV1aQ5WNuFFQV5lxlYRqjn53jlW9UlRfob1gYkuxoq1QLAJ-xMP4_"
      conversationID="C2C123"
    > -->
    <!-- 小猫 对 小熊 的聊天 -->
    <!-- <TUIKit
      :SDKAppID="1600075130"
      userID="123"
      userSig="eJyrVgrxCdYrSy1SslIy0jNQ0gHzM1NS80oy0zLBwoZGxlDh4pTsxIKCzBQlK0MzAwMDc1NDYwOITGpFQWZRKlDc1NTUCCgFES3JzAWJmZsYWFiamxuYQE3JTAea6uTi6etiYFYR5pRcbB7i5m1R5p5h4JRT7JqW5m1klJJfZOkXlZhdmp7oX2yrVAsAOp8vvA__"
      conversationID="C2C456"
    >
      <TUIChat><h1>Welcome to Tencent Cloud Chat</h1></TUIChat>
    </TUIKit> -->
    <ConferenceMainView></ConferenceMainView>
  </div>
</template>
<script lang="ts" setup>
import { ConferenceMainView } from '@tencentcloud/roomkit-web-vue3';
import { conference } from '@tencentcloud/roomkit-web-vue3';
import { onMounted } from "vue";



const startConference = async () => {
    await conference.login({    
    // 获取 sdkAppId 可参考文档开通服务部分，https://cloud.tencent.com/document/product/647/104842
    sdkAppId: 1600075598,
    // 用户在您业务中的唯一标示 Id
    userId: 'panda',
    // 本地开发调试可在 https://console.cloud.tencent.com/trtc/usersigtool 页面快速生成 userSig, 注意 userSig 与 userId 为一一对应关系
    userSig: 'eJwtzE8LgjAcxvH3snPItrb2S*hidMkdEqU-x8Gm-orW0BVB9N4z9fh8vvB8SKXL5OU6khKeULIYN1rnI9Y4cjDemjn09mZCQEtStqKUKinXMBX3Dti5waWUfEiTRrz-TQlGQQlQ8ws2wy*L4nyqyuKYAz9Y-Yiw5Xq-7CHUBW1dFD5-muul3WXNhnx-Fj8xGA__', 
});
    await conference.start('123456', {
      roomName: 'TestRoom',
      isSeatEnabled: false,
      isOpenCamera: false,
      isOpenMicrophone: false,
    });
}
onMounted(()=>{
  startConference()
})

// eJyrVgrxCdYrSy1SslIy0jNQ0gHzM1NS80oy0zLBwsmJJVDh4pTsxIKCzBQlK0MzAwMDc1NTSwuITGpFQWZRKlDc1NTUCCgFES3JzAWJmZsYGlhYGJkbQU3JTAeaWpVnqm2UV1no5xviWu6U5JERbBJS7JPqWeHjnVoVEBXo6WYRGBrgExFqmG2rVAsArXUwlg__
</script>
<style lang="scss"></style>

<!-- 
    小熊的签名（456）： 
    eJyrVgrxCdYrSy1SslIy0jNQ0gHzM1NS80oy0zLBwiamZlDh4pTsxIKCzBQlK0MzAwMDc1NDYwOITGpFQWZRKlDc1NTUCCgFES3JzAWJmZsYGphZmpobQU3JTAeampcRke5REGaWkutcUJSRV1aQ5WNuFFQV5lxlYRqjn53jlW9UlRfob1gYkuxoq1QLAJ-xMP4_
    小猫的签名（123）：
    eJyrVgrxCdYrSy1SslIy0jNQ0gHzM1NS80oy0zLBwoZGxlDh4pTsxIKCzBQlK0MzAwMDc1NDYwOITGpFQWZRKlDc1NTUCCgFES3JzAWJmZsYWFiamxuYQE3JTAea6uTi6etiYFYR5pRcbB7i5m1R5p5h4JRT7JqW5m1klJJfZOkXlZhdmp7oX2yrVAsAOp8vvA__
  -->